package com.zh.flowable.domain.dto;

import org.flowable.engine.repository.Deployment;

/**
 * @author
 * @date 2025/8/21
 */
public class DeploymentWrapper {

    public static DeploymentDTO convertDTO(Deployment entity){
        DeploymentDTO dto = new DeploymentDTO();
        dto.setId(entity.getId());
        dto.setKey(entity.getKey());
        dto.setName(entity.getName());
        dto.setDeployTime(entity.getDeploymentTime());
        dto.setCategory(entity.getCategory());
        dto.setTenantId(entity.getTenantId());
        dto.setParentDeploymentId(entity.getParentDeploymentId());
        dto.setEngineVersion(entity.getEngineVersion());
        return dto;
    }
}
